package com.hiwhitley.himei.contract;

import com.hiwhitley.himei.entity.GameItem;
import com.hiwhitley.himei.entity.GameList;
import com.hiwhitley.himei.mvpframe.BaseModel;
import com.hiwhitley.himei.mvpframe.BasePresenter;
import com.hiwhitley.himei.mvpframe.BaseView;

import java.util.List;

import rx.Observable;

/**
 * Created by hiwhitley on 2016/10/11.
 */

public interface GameContract {

    interface Model extends BaseModel {
        Observable<GameList> getGames(int offset, int limit);
    }

    interface View extends BaseView {
        void showGames(List<GameItem> gameItems);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void loadGames(int offset, int limit);
    }

}
